package com.Lists.LinkedLists.common;

public abstract class ListElement {

	public ListElement next;
	public Object data;

	public ListElement() {
		this.data = null;
	}

	public ListElement(ListElement next, Object data) {
		this.next = next;
		this.data = data;
	}

	public ListElement(Object data) {
		this.data = data;
	}

	public String toSring(){
		return "Data "+ this.data;
	}
}
